Skip to main content
PATCH
/
api
/
accounts
cURL
curl --request PATCH \
  --url https://recoup-api.vercel.app/api/accounts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "instruction": "<string>",
  "organization": "<string>",
  "image": "<string>",
  "jobTitle": "<string>",
  "roleType": "<string>",
  "companyName": "<string>",
  "knowledges": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "email": "jsmith@example.com",
    "wallet": "<string>",
    "image": "<string>",
    "instruction": "<string>",
    "organization": "<string>",
    "job_title": "<string>",
    "role_type": "<string>",
    "company_name": "<string>",
    "knowledges": [
      "<string>"
    ]
  }
}

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Account fields to update

accountId
string<uuid>
required

The unique identifier of the account to update

name
string

Display name for the account

instruction
string

Custom instruction or bio for the account

organization
string

Organization name associated with the account

image
string<uri>

URL of the account's profile image

jobTitle
string

Job title of the account holder

roleType
string

Role type within the organization

companyName
string

Company name associated with the account

knowledges
string[]

List of knowledge areas or expertise

Response

Account updated successfully

data
object
required

The account data