Skip to main content

Create A Custom API Role Policy

POST 

/v2/permissions/custom-api-role-policies

Create A Custom API Role Policy

Request

Body

    data CustomAPIRolePolicyAttributesrequired
    type stringrequired

    Specifies the type of the resource object, use custom_api_role_policy for Custom API Role Policies.

    create booleanrequired

    Specifies if the Built-in Role can create a Custom API Entry.

    list booleanrequired

    Specifies if the Built-in Role can retrieve a list of Custom API Entries.

    read booleanrequired

    Specifies if the Built-in Role can get a Custom API Entry.

    update booleanrequired

    Specifies if the Built-in Role can update a Custom API Entry.

    delete booleanrequired

    Specifies if the Built-in Role can delete a Custom API Entry.

    relationships objectrequired
    custom_api objectrequired
    data objectrequired
    id stringrequired

    The unique identifier for the related Custom API.

    type stringrequired

    Specifies the type of the resource object.

    role objectrequired
    data objectrequired
    id stringrequired

    The unique identifier for the related Built-In Role.

    type stringrequired

    Specifies the type of the resource object.

Responses

Created

Schema
    data object
    id uuid

    The unique identifier for the Custom API Role Policy.

    type string

    Specifies the type of the resource object, use custom_api_role_policy for Custom API Role Policies.

    create boolean

    Specifies if the Built-in Role can create a Custom API Entry.

    list boolean

    Specifies if the Built-in Role can retrieve a list of Custom API Entries.

    read boolean

    Specifies if the Built-in Role can get a Custom API Entry.

    update boolean

    Specifies if the Built-in Role can update a Custom API Entry.

    delete boolean

    Specifies if the Built-in Role can delete a Custom API Entry.

    links object
    self uri

    Specifies the URI of the Built-In Role.

    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.

    relationships object
    custom_api objectrequired
    data objectrequired
    id stringrequired

    The unique identifier for the related Custom API.

    type stringrequired

    Specifies the type of the resource object.

    role objectrequired
    data objectrequired
    id stringrequired

    The unique identifier for the related Built-In Role.

    type stringrequired

    Specifies the type of the resource object.

Loading...