Skip to main content

Update a Custom API

PUT 

/v2/settings/extensions/custom-apis/:custom_api_id

Update a Custom API

Request

Path Parameters

    custom_api_id stringrequired

    The id of the Custom API.

    Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body

    data CustomApiAttributesrequired
    type stringrequired

    Specifies the type of the resource object, use custom_api for Custom APIs.

    name string

    Possible values: non-empty and <= 255 characters

    Specifies the name of this Custom API.

    description string

    Possible values: <= 255 characters

    Specifies the description for this Custom API.

    slug string

    Possible values: Value must match regular expression ^[a-z0-9_-]{1,63}$

    Specifies a unique slug identifier for the Custom API. The API Entries for the created Custom API will be accessible at the location /v2/extensions/<slug>.

    api_type string

    Possible values: Value must match regular expression ^[a-z0-9_]{1,59}_ext$

    Specifies a unique API type for this Custom API. Entries for this API will use this value for their type field. This field must be suffixed with _ext to distinguish it from built in APIs.

    links object
    meta object
    timestamps objectrequired

Responses

OK

Schema
    data objectrequired
    id uuid

    The unique identifier for the Custom API.

    type string

    Specifies the type of the resource object, use custom_api for Custom APIs.

    name string

    Possible values: non-empty and <= 255 characters

    Specifies the name of this Custom API.

    description string

    Possible values: <= 255 characters

    Specifies the description for this Custom API.

    slug string

    Possible values: Value must match regular expression ^[a-z0-9_-]{1,63}$

    Specifies a unique slug identifier for the Custom API. The API Entries for the created Custom API will be accessible at the location /v2/extensions/<slug>.

    api_type string

    Possible values: Value must match regular expression ^[a-z0-9_]{1,59}_ext$

    Specifies a unique API type for this Custom API. Entries for this API will use this value for their type field. This field must be suffixed with _ext to distinguish it from built in APIs.

    links object
    self uri

    Specifies the URI of the Custom API.

    meta object
    timestamps objectrequired
    updated_at stringrequired

    Specifies the date the entity is created.

    created_at stringrequired

    Specifies the date the entity is last updated.

Loading...