Shares API
Sharing records with people and teams. 16 routes; send a bearer token with each (see Authentication).
| Route | What it does |
|---|---|
GET /v1/contacts/{id}/shares |
A contact’s shares |
POST /v1/contacts/{id}/shares |
Share a contact |
PATCH /v1/contacts/{id}/shares/{shareId} |
Change a share’s access |
DELETE /v1/contacts/{id}/shares/{shareId} |
Remove a share |
GET /v1/accounts/{id}/shares |
A account’s shares |
POST /v1/accounts/{id}/shares |
Share a account |
PATCH /v1/accounts/{id}/shares/{shareId} |
Change a share’s access |
DELETE /v1/accounts/{id}/shares/{shareId} |
Remove a share |
GET /v1/opportunities/{id}/shares |
A opportunity’s shares |
POST /v1/opportunities/{id}/shares |
Share a opportunity |
PATCH /v1/opportunities/{id}/shares/{shareId} |
Change a share’s access |
DELETE /v1/opportunities/{id}/shares/{shareId} |
Remove a share |
GET /v1/cases/{id}/shares |
A case’s shares |
POST /v1/cases/{id}/shares |
Share a case |
PATCH /v1/cases/{id}/shares/{shareId} |
Change a share’s access |
DELETE /v1/cases/{id}/shares/{shareId} |
Remove a share |
A contact’s shares
GET https://staging-api.naruskacrm.com/v1/contacts/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of Share | yes |
Errors are problem details with a stable code: see Errors.
Share a contact
POST https://staging-api.naruskacrm.com/v1/contacts/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
user_id |
string (uuid) | ||
team_id |
string (uuid) | ||
access |
read, edit |
yes |
Response 201
Returns: Share.
Errors are problem details with a stable code: see Errors.
Change a share’s access
PATCH https://staging-api.naruskacrm.com/v1/contacts/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
access |
read, edit |
yes |
Response 200
Returns: Share.
Errors are problem details with a stable code: see Errors.
Remove a share
DELETE https://staging-api.naruskacrm.com/v1/contacts/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.
A account’s shares
GET https://staging-api.naruskacrm.com/v1/accounts/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of Share | yes |
Errors are problem details with a stable code: see Errors.
Share a account
POST https://staging-api.naruskacrm.com/v1/accounts/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
user_id |
string (uuid) | ||
team_id |
string (uuid) | ||
access |
read, edit |
yes |
Response 201
Returns: Share.
Errors are problem details with a stable code: see Errors.
Change a share’s access
PATCH https://staging-api.naruskacrm.com/v1/accounts/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
access |
read, edit |
yes |
Response 200
Returns: Share.
Errors are problem details with a stable code: see Errors.
Remove a share
DELETE https://staging-api.naruskacrm.com/v1/accounts/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.
A opportunity’s shares
GET https://staging-api.naruskacrm.com/v1/opportunities/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of Share | yes |
Errors are problem details with a stable code: see Errors.
Share a opportunity
POST https://staging-api.naruskacrm.com/v1/opportunities/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
user_id |
string (uuid) | ||
team_id |
string (uuid) | ||
access |
read, edit |
yes |
Response 201
Returns: Share.
Errors are problem details with a stable code: see Errors.
Change a share’s access
PATCH https://staging-api.naruskacrm.com/v1/opportunities/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
access |
read, edit |
yes |
Response 200
Returns: Share.
Errors are problem details with a stable code: see Errors.
Remove a share
DELETE https://staging-api.naruskacrm.com/v1/opportunities/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.
A case’s shares
GET https://staging-api.naruskacrm.com/v1/cases/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of Share | yes |
Errors are problem details with a stable code: see Errors.
Share a case
POST https://staging-api.naruskacrm.com/v1/cases/{id}/shares
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
user_id |
string (uuid) | ||
team_id |
string (uuid) | ||
access |
read, edit |
yes |
Response 201
Returns: Share.
Errors are problem details with a stable code: see Errors.
Change a share’s access
PATCH https://staging-api.naruskacrm.com/v1/cases/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
access |
read, edit |
yes |
Response 200
Returns: Share.
Errors are problem details with a stable code: see Errors.
Remove a share
DELETE https://staging-api.naruskacrm.com/v1/cases/{id}/shares/{shareId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
shareId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.