Update all the service types of a consignment. Existing service types not present in the request will also be removed from the consignment.

​

Path Parameters

Body·

application/json
  • An array of service type Id's.

Responses

  • OK

Request Example for put/v1/consignments/{consignmentId}/service-types
curl https://api.consignlyhq.com/v1/consignments/123e4567-e89b-12d3-a456-426614174000/service-types \
  --request PUT \
  --header 'Content-Type: application/json' \
  --data '{
  "serviceTypeIds": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}'
No Body