curl --request PATCH \
  --url https://api.usepylon.com/accounts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "owner_id": "<string>",
  "tags": [
    "<string>"
  ]
}'
{
  "custom_fields": [
    {
      "slug": "<string>",
      "value": "<string>",
      "values": "<string>"
    }
  ]
}

Update the fields on the given Pylon account object.

Body Parameters

name
string

The name of the account

owner_id
string

The ID of ther user who is the owner of this account.

tags
string[]

An array of strings to use as tags on this account. If provided, the accounts tags will be updated to the given tags.

tags
string[]

An array of strings to use as tags on this account. If provided, the accounts tags will be updated to the given tags.

custom_fields
Custom Field[]

An array of custom fields to be used on this account. Only passed in fields will be modified.

Response

Example response

{
    "data": {
        "id": "23b59a2d-767c-4d64-8afd-13fd45c95175",
        "name": "Brex",
        "owner": {
            "id": "0fa4390c-9eaa-4793-9661-a7f82f128f0e"
        },
        "domain": "brex.com",
        "type": "customer",
        "created_at": "2023-09-04T19:26:41Z"
    },
    "request_id": "2ff7ff15-54fd-4a1b-9e1a-a9eb862127f4"
}