Skip to main content
PATCH
/
api
/
stakeholder-link-types
/
{id}
Update a custom role
curl --request PATCH \
  --url https://archyon.app/api/stakeholder-link-types/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "color": "<string>",
  "icon": "<string>",
  "iconName": "<string>",
  "sortOrder": 123
}
'
{
  "type": {
    "id": "<string>",
    "orgId": "<string>",
    "name": "<string>",
    "color": "<string>",
    "sortOrder": 123,
    "createdAt": 123,
    "updatedAt": 123,
    "icon": "<string>",
    "iconName": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.archyon.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Both Clerk session JWTs (browser) and Archyon Personal Access Tokens (an_pat_…, server / CLI / MCP) use the same Bearer header. The server distinguishes them by token shape.

  • Clerk JWTs carry org context in the token claims (org_id, org_role, org_slug) — required for org-scoped endpoints. Configure your Clerk session template to include these claims; see DEPLOYMENT.md.
  • PATs are minted at /account → Tokens. Each PAT is bound to whichever org was active at mint time. Switch orgs and re-mint to address a different org.

Path Parameters

id
string
required

Body

application/json
name
string
color
string
Pattern: ^#[0-9A-Fa-f]{6}$
icon
string | null

Empty string is treated as null.

iconName
string | null
sortOrder
integer

Response

OK.

type
object
required