Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.12 KB

File metadata and controls

73 lines (54 loc) · 2.12 KB
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.

Installation

Install the Service Points feature

Update a service type


PATCH /service-types


Request

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

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 %}

Possible errors

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.