Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
  • Focus areas
  • Funds - Benefit items
  • Funds - Benefit types
  • Funds - Cost items
  • Funds - Cost subtypes
  • Funds - Cost types
  • Funds - Investment categories
  • Organizations
Cloud
Focus / Reference / REST API

Organizations

Postman Collection
OpenAPI
GET

Get organizations

Returns a paginated list of organizations with optional filtering.

organizations-read-scope

Request

Query parameters

limit

string

cursor

string

nameContains

string

parentId

string

sort

string

Responses

Organizations returned successfully.

application/json

PaginatedResponse

Paginated REST response.

GET/focus/v1/organizations
1 2 3 4 curl --request GET \ --url '/focus/v1/organizations' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 { "values": [ {} ], "cursor": "<string>", "last": true, "totalCount": 21, "nextPageCursor": "<string>" }
POST

Create an organization

Creates a new organization with the provided details. If parent organization is omitted, the new organization is created as top-level. When owner is omitted, the authenticated user is used as creator and owner.

organizations-read-scope

Request

Request bodyapplication/json

name

string

Required
organizationTypeId

string

Required
externalId

string

parentOrganizationId

string

ownerId

string

targetDate

string

targetDateType

string

Responses

Organization created successfully.

application/json

Organization

An Organization.

POST/focus/v1/organizations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl --request POST \ --url '/focus/v1/organizations' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "organizationTypeId": "<string>", "externalId": "<string>", "parentOrganizationId": "<string>", "ownerId": "<string>", "targetDate": "<string>", "targetDateType": "<string>" }'
201Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 { "id": "<string>", "name": "<string>", "externalId": "<string>", "about": "<string>", "createdDate": "<string>", "updatedDate": "<string>", "owner": { "id": "<string>", "name": "<string>" }, "organizationType": { "id": "<string>", "name": "<string>" }, "parent": { "id": "<string>" }, "path": [ { "id": "<string>", "index": 68 } ], "status": { "id": "<string>", "name": "<string>" } }
POST

Archive an organization

Archives the specified organization with an optional comment.

organizations-read-scope

Request

Path parameters

organizationId

string

Required

Request bodyapplication/json

string

Default:

Responses

Organization archived successfully.

POST/focus/v1/organizations/{organizationId}:archive
1 2 3 4 5 curl --request POST \ --url '/focus/v1/organizations/{organizationId}:archive' \ --header 'Authorization: Bearer <access_token>' \ --header 'Content-Type: application/json' \ --data '"<string>"'
GET

Get an organization

Returns organization details by organization ID.

organizations-read-scope

Request

Path parameters

organizationId

string

Required

Responses

Organization returned successfully.

application/json

Organization

An Organization.

GET/focus/v1/organizations/{organizationId}
1 2 3 4 curl --request GET \ --url '/focus/v1/organizations/{organizationId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 { "id": "<string>", "name": "<string>", "externalId": "<string>", "about": "<string>", "createdDate": "<string>", "updatedDate": "<string>", "owner": { "id": "<string>", "name": "<string>" }, "organizationType": { "id": "<string>", "name": "<string>" }, "parent": { "id": "<string>" }, "path": [ { "id": "<string>", "index": 68 } ], "status": { "id": "<string>", "name": "<string>" } }
DEL

Delete an organization

Deletes the specified organization. This action is irreversible.

organizations-read-scope

Request

Path parameters

organizationId

string

Required

Responses

Organization deleted successfully.

DEL/focus/v1/organizations/{organizationId}
1 2 3 curl --request DELETE \ --url '/focus/v1/organizations/{organizationId}' \ --header 'Authorization: Bearer <access_token>'
PATCH

Update an organization

Updates the details of the specified organization. The updateMask query parameter specifies which fields to update; supported fields are name, ownerId, externalId, and about. Fields not listed in updateMask are not modified. Fields listed in updateMask but omitted from the request body or set to null are cleared; clearing a required field is not allowed and will result in a 400 response.

organizations-read-scope

Request

Path parameters

organizationId

string

Required

Query parameters

updateMask

string

Required

Request bodyapplication/json

name

string

ownerId

string

externalId

string

about

string

Responses

Organization updated successfully.

application/json

Organization

An Organization.

PATCH/focus/v1/organizations/{organizationId}
1 2 3 4 5 6 7 8 9 10 11 curl --request PATCH \ --url '/focus/v1/organizations/{organizationId}?updateMask=name%2Cabout' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "ownerId": "<string>", "externalId": "<string>", "about": "<string>" }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 { "id": "<string>", "name": "<string>", "externalId": "<string>", "about": "<string>", "createdDate": "<string>", "updatedDate": "<string>", "owner": { "id": "<string>", "name": "<string>" }, "organizationType": { "id": "<string>", "name": "<string>" }, "parent": { "id": "<string>" }, "path": [ { "id": "<string>", "index": 68 } ], "status": { "id": "<string>", "name": "<string>" } }

Rate this page: