Webapi - Creating a part of the service type

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:
  1.     {
            "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:

  1. PartKey: The part of the service type's key. This field is mandatory.
  2. Description: Short description of the service. This field is mandatory.
  3. ComplementaryDescription: Full description.
  4. Keyword: Short description of the service.
  5. Barcode: The service tag.
  6. Picture: The service image.
  7. Remarks: Location observation.
  8. Family: The family's key.
  9. Brand: The brand's key.
  10. BrandModel: The model's key.
  11. BaseUnit: The base unit key. This field is mandatory.
  12. 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 ...