Create a new work location
Creates a new work location and returns its ID and details.
Helpful resources
Required Scopes
- work-locations.read-write
Request
- application/json
Body
The name of the work location.
address objectrequired
The classification of the address.
The full street address component, which may include house number, street name, P.O. box, and multi-line extended street address information, pursuant to SCIM RFC 7643 4.1.2..
The city or locality component.
The state or region component, pursuant to SCIM RFC 7643 4.1.2.
The zip code or postal code component, pursuant to SCIM RFC 7643 4.1.2.
The country component, pursuant to SCIM RFC 7643 4.1.2.
Responses​
- 200
- 400
- 401
- 403
Successful response
- application/json
- Schema
- Example (from schema)
Schema
__meta object
redacted_fields object[]
The name for the redacted field
The reason for the redaction
Identifier field
Record creation date
Record update date
The name of the work location.
address objectrequired
The classification of the address.
The formatted mailing address.
The full street address component, which may include house number, street name, P.O. box, and multi-line extended street address information, pursuant to SCIM RFC 7643 4.1.2..
The city or locality component.
The state or region component, pursuant to SCIM RFC 7643 4.1.2.
The zip code or postal code component, pursuant to SCIM RFC 7643 4.1.2.
The country component, pursuant to SCIM RFC 7643 4.1.2.
{
"__meta": {
"redacted_fields": [
{
"name": "date_of_birth",
"reason": "Insufficient entitlements"
}
]
},
"id": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"address": {
"type": "HOME",
"formatted": "string",
"street_address": "string",
"locality": "string",
"region": "string",
"postal_code": "string",
"country": "AF"
}
}
The request failed validation. The response body describes the error.
- application/json
- Schema
- Example (from schema)
Schema
A human-readable explanation of why the request failed.
{
"detail": "string"
}
Authentication is required or the supplied credentials are invalid.
- application/json
- Schema
- Example (from schema)
Schema
Matches one or more of these formats:
- Format 1ok booleanrequired
Whether the request succeeded. Always false for an authentication error.
Possible values: [false]error stringrequiredA human-readable explanation of why authentication failed.
- Format 2detail stringrequired
A human-readable explanation of the authentication error.
- Format 1
{
"ok": false,
"error": "Incorrect authentication credentials."
}
{
"detail": "string"
}
The caller is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
Schema
A human-readable explanation of why the request failed.
{
"detail": "string"
}