Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 2.25 KB

File metadata and controls

74 lines (55 loc) · 2.25 KB
title description last_updated template
Glue API: Update service points
Learn how to update service points using Glue API
Nov 23, 2023
glue-api-storefront-guide-template

This endpoint lets you update service points.

Installation

Install the Service Points feature

Update a service point


PATCH /services


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/services/37ef89d3-7792-533c-951c-981c6b56312c

{
    "data": {
        "type": "services",
        "attributes": {
            "isActive": false
        }
    }
}
ATTRIBUTE TYPE REQUIRED DESCRIPTION
isActive Boolean Defines if the service is to be active. Inactive services are not displayed on the Storefront.

Response

Response sample:

{
    "data": {
        "type": "services",
        "id": "37ef89d3-7792-533c-951c-981c6b56312c",
        "attributes": {
            "uuid": "37ef89d3-7792-533c-951c-981c6b56312c",
            "isActive": false,
            "key": "s1"
        },
        "links": {
            "self": "https://glue-backend.mysprykershop.com/services/37ef89d3-7792-533c-951c-981c6b56312c"
        }
    }
}

{% include pbc/all/glue-api-guides/{{page.version}}/services-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.