Update Community Occupation Information
PUT/community/:communityId/occupation
This endpoint updates a community member's occupation information.
For a list of all occupations, go to Lookup - Occupation Type
For a list of all industries, go to Lookup - Occupation Industry
For a list of all position categories, go to Lookup - Occupation Position
Request
Path Parameters
communityId uuidrequired
Community id
Example: 46cb5481-6e20-4f17-b947-db81cdce9a4f
- application/json
Body
company stringrequired
description stringrequired
industry objectnullablerequired
id uuidrequired
occupation objectnullablerequired
id uuidrequired
positionCategory objectnullablerequired
id uuidrequired
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
- Successful
Schema
code stringrequired
Status Code
data objectnullable
company stringnullablerequired
description stringnullablerequired
industry objectnullablerequired
id stringnullablerequired
description stringnullablerequired
occupation objectnullablerequired
id stringnullablerequired
description stringnullablerequired
positionCategory objectnullablerequired
id stringnullablerequired
description stringnullablerequired
{
"code": "OK",
"data": {
"company": "string",
"description": "string",
"industry": {
"id": "string",
"description": "string"
},
"occupation": {
"id": "string",
"description": "string"
},
"positionCategory": {
"id": "string",
"description": "string"
}
}
}
{
"company": "Drafting S",
"description": "Sheller",
"industry": {
"id": "e39709be-120e-4c14-acd6-e9e4ff787103",
"description": "Mushroom and Vegetable Growing"
},
"occupation": {
"id": "97d6b873-c290-4acc-8fec-b1bec6367e0f",
"description": "Abalone Sheller"
},
"positionCategory": {
"id": "003faf12-c72c-468b-b508-5763e8f497da",
"description": "Other business manager, arts/media/sportsperson, associate professional"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1100",
"message": "Bad Request"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1101",
"message": "Unauthorized"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1102",
"message": "Forbidden"
}
]
}
Resource not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1103",
"message": "Not Found"
}
]
}
Unprocessable entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1108",
"message": "Unprocessable Entity"
}
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1109",
"message": "Internal Server Error"
}
]
}
Loading...