Skip to main content

Perform activate or deactivate action on provided Credential

POST 

/telephony_credentials/:id/actions/:action

Perform activate or deactivate action on provided Credential. Activate action will change the status to active, making it possible to connect calls with the credential. Deactivate action will change the status to inactive, making it impossible to connect calls with the credential.

Request

Path Parameters

    id stringrequired

    Identifies the resource.

    action stringrequired

    Possible values: [activate, deactivate]

    Identifies the action to be taken.

Responses

200: Successful response with details about a credential

Schema

    data

    object

    id string

    Identifies the resource.

    record_type string

    Identifies the type of the resource.

    name string
    resource_id string

    Identifies the resource this credential is associated with.

    expired boolean

    Defaults to false

    sip_username string

    The randomly generated SIP username for the credential.

    sip_password string

    The randomly generated SIP password for the credential.

    created_at string

    ISO-8601 formatted date indicating when the resource was created.

    updated_at string

    ISO-8601 formatted date indicating when the resource was updated.

    expires_at string

    ISO-8601 formatted date indicating when the resource will expire.

400: Bad request

401: Unauthorized

404: Resource not found

Loading...