Skip to content

Set the review of a user

PUT
/client-members/{memberId}/review
Code sample: Shell / cURL
curl --request PUT \
--url https://example.com/api/v1/client-members/example/review \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "review": "PENDING" }'

Records the team’s review of a user, as the Access review card on the user’s page does. For a person with no company: PENDING, EXTERNAL_AGENCY (sees only the tickets they were added to) or SPAM (blocked at once, their exact address ignored by the helpdesk until the mark is undone, removed after 7 days). null finishes the review of someone who already holds a company. A review that does not apply to the person answers 409. Requires the clients.view and clients.edit permissions; a person with no company is only reachable with clients.view_all.

memberId
required

WorkspaceMember id of the client person.

string
>= 1 characters

WorkspaceMember id of the client person.

Media typeapplication/json
object
review
required

For a person with no company: PENDING, EXTERNAL_AGENCY (sees only tickets they were added to) or SPAM (blocked at once, their exact address ignored by the helpdesk, removed after 7 days). Null finishes the review of someone who already holds a company.

Any of:
string
Allowed values: PENDING EXTERNAL_AGENCY SPAM

The person as saved.

Media typeapplication/json
object
data
required

A person at one or more client companies, with their portal status.

object
companies
required

The client companies the person holds that the caller reaches.

Array<object>
object
accessLevel
required

Data-scope attribute of the person on this company: OWNER, BILLING, LEAD, MEMBER or COLLABORATOR (tickets only).

string
clientId
required
string
contactId
required
string
isPrimary
required
boolean
name
required
string
portalInvitation
required

The last portal invitation or welcome email tried for this company, or null when none is recorded.

Any of:

The delivery of the last portal invitation or welcome email tried for a contact.

object
at
required

When the outcome last changed.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
outcome
required

PENDING while handed to the provider, SENT once accepted, FAILED when it never left, then DELAYED, DELIVERED, BOUNCED or COMPLAINED (marked as spam) as the provider reports.

string
Allowed values: PENDING SENT FAILED DELAYED DELIVERED BOUNCED COMPLAINED
reason
required

Why the provider refused or bounced it, when it said.

string | null
revokedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
roles
required
Array<string>
Allowed values: TICKETS BILLING HOURS
statusId
required

The company’s client status catalog id, or null when it has none.

string | null
contactEmail
required

The person’s contact email in this workspace, from their first company the caller reaches; null when they are on none.

string | null
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
email
required

The email the person signs in with. Only they change it, from their profile.

string
firstName
required
string
lastName
required
string
memberId
required

WorkspaceMember id of the client person.

string
origin

How the person came in, in plain words; Not recorded when nothing reliable says it. Absent on an older server.

string
review

The team’s review of the person, null when there is none. Absent on an older server.

Any of:
string
Allowed values: PENDING EXTERNAL_AGENCY SPAM
status
required
string
Allowed values: inactive revoked active invited not_invited

Example

{
"data": {
"companies": [
{
"portalInvitation": {
"outcome": "PENDING"
},
"roles": [
"TICKETS"
]
}
],
"review": "PENDING",
"status": "inactive"
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Client person not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

The review does not apply to this person.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.