Webapi - Creating a part of the service type
This
method allows to create a part of the service type in a simplified manner.The
method to be used to create a part of the service type is:
POST
url/api/mytenant/myorganization/businesscore/parts
Json
example to create a part of the service type:
{
"PartKey": "001",
"description": "Serviço de manutenção",
"complementaryDescription": "Serviço de manutenção do edificio" ,
"keyword": "SM001",
"barcode": "P1234565",
"image": null,
"imageThumbnail": null,
"remarks": null,
"family": "ASP",
"brand": "LB",
"brandModel": null,
"baseUnit": "LT",
"partType": 2
}
This
method allows to create a part of the service type according to the filled in
parameters:
- PartKey: The
part of the service type's key. This field is mandatory.
- Description: Short
description of the service. This field is mandatory.
- ComplementaryDescription:
Full description.
- Keyword: Short
description of the service.
- Barcode: The
service tag.
- Picture: The
service image.
- Remarks: Location
observation.
- Family: The
family's key.
- Brand: The
brand's key.
- BrandModel: The
model's key.
- BaseUnit:
The base unit key. This field is mandatory.
- PartType:
When creating a part of the service type, this field is filled in with
"2". If you insert 1, a part of the part type without inventory
extension will be created. This field is mandatory.
When
this method is executed successfully, it returns HttpStatusCode.201 Created
Related Articles
WebAPI - Creating a requisition type
This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition: ...
WebAPI - Changing a part or service attribute
This method allows to change a part or service field. The method to be used to change a part or service attribute is: PUT {{url}/api/{{tenant}}/{{organization}}/businesscore/parts/{{partKey}}/{{atributo}} The parameters on the method are the ...
WebAPI - Creating a part with inventory extension
This method allows to create a part of the part type with inventory extension in a simplified manner. The method to be used when creating a part with inventory extension is: POST ...
WebAPI - Deleting a part or service
This method allows to delete a part or service. The method to be used when deleting a part or service is: DELETE url/api/mytenant/myorganization/businesscore/parts/{{partKey}} The parameters being replaced on the method are: partKey: key of the part ...
Webapi - Deleting a part or service
This method allows to delete a part or service. The method to be used when deleting a part or service is: DELETE url/api/mytenant/myorganization/businesscore/parts/{{partKey}} The parameters being replaced on the method are: partKey: key of ...