Skip to main content
PATCH
/
api
/
v1
/
api_key
/
{uuid}
Update API Key by UUID
curl --request PATCH \
  --url https://api.paylora.org/api/v1/api_key/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "inactive"
}
'
{
  "success": true,
  "data": {
    "uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "user_uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "status": "active",
    "key": "api_key_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "url": "https://example.com"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string
required

The UUID of the API Key

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

Body

application/json
status
enum<string>
required

The status of the API Key

Available options:
active,
inactive
Example:

"inactive"

Response

Resource model

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required

The data returned by the API