title | description | last_updated | template |
---|---|---|---|
Glue API: Update service types |
Learn how to update service types using Glue API |
Nov 23, 2023 |
glue-api-storefront-guide-template |
This endpoint lets you update service types.
Install the Service Points feature
PATCH
/service-types
HEADER KEY | HEADER VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
Authorization | string | ✓ | Alphanumeric string that authorizes the warehouse user to send requests to protected resources. Get it by authenticating as a warehouse user. |
Request sample: PATCH https://glue-backend.mysprykershop.com/service-types/7a263a50-12a3-5ef4-86f4-366f20783180
{
"data": {
"type": "service-types",
"attributes": {
"name": "Demos"
}
}
}
ATTRIBUTE | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
name | String | Name. |
Response sample:
{
"data": {
"type": "service-types",
"id": "7a263a50-12a3-5ef4-86f4-366f20783180",
"attributes": {
"name": "Demos",
"key": "demo"
},
"links": {
"self": "https://glue-backend.mysprykershop.com/service-types/7a263a50-12a3-5ef4-86f4-366f20783180"
}
}
}
{% include pbc/all/glue-api-guides/{{page.version}}/service-points-response-attributes.md %}
CODE | REASON |
---|---|
5403 | The service point with the specified ID doesn't exist. |
To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.