Skip to main content
PATCH
/
v1
/
workspaces
/
{id}
Update workspace
curl --request PATCH \
  --url https://api.wellapp.ai/v1/workspaces/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "type": "<string>",
    "attributes": {
      "name": "<string>",
      "description": "<string>"
    },
    "relationship": {
      "owner": {
        "data": {
          "type": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      }
    },
    "included": {
      "owner": {
        "data": {
          "type": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "attributes": {
            "first_name": "John",
            "last_name": "Doe"
          }
        }
      }
    }
  }
}'
{
  "data": {
    "type": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "attributes": {
      "name": "<string>",
      "desription": "<string>",
      "external_workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "avatar_color": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "<string>",
          "id": "<string>"
        }
      }
    },
    "included": [
      {
        "type": "peoplex",
        "id": "temp-people1",
        "attributes": {
          "first_name": "John",
          "last_name": "Doe",
          "full_name": "John Doe",
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      }
    ]
  }
}

Headers

Authorization
string
required

Bearer token for authentication

Path Parameters

id
string<uuid>
required

UUID of the workspace to update

Body

application/json
data
object
required

Response

Workspace updated successfully

data
object
I