Add
Add a new TelephoneNumber.
Request Format
Method |
|
---|---|
URL |
|
Request Body |
Response Format
HTTP Status | Response Body | Description |
---|---|---|
| NewObjectResponse with | TelephoneNumber added |
| TelephoneNumber Request not provided in POST body | |
| ErrorResponse with details in | An error in one or more provided fields |
| Authentication required | |
| A CO Department, a CO Person Role, or an Org Identity must be specified to attach the Telephone Number to | |
| The specified CO Department, CO Person Role, or Org Identity does not exist | |
| Unknown error |
Delete
Remove a TelephoneNumber.
Request Format
Method |
|
---|---|
URL |
|
Request Body |
Response Format
HTTP Status | Response Body | Description |
---|---|---|
| Address deleted | |
|
| |
| Authentication required | |
|
| |
| Unknown error |
Edit
Edit an existing TelephoneNumber.
Request Format
Method |
|
---|---|
URL |
|
Request Body |
Response Format
HTTP Status | Response Body | Description |
---|---|---|
| TelephoneNumber updated | |
| TelephoneNumber Request not provided in POST body | |
| ErrorResponse with details in | An error in one or more provided fields |
| Authentication required | |
| A CO Department, a CO Person Role, or an Org Identity must be specified to attach the Telephone Number to | |
| The specified CO Department, CO Person Role, or Org Identity does not exist | |
|
| |
| Unknown error |
View (all)
Retrieve all existing TelephoneNumbers.
Request Format
Method |
|
---|---|
URL |
|
Request Body |
Response Format
HTTP Status | Response Body | Description |
---|---|---|
| TelephoneNumbers returned | |
| Authentication required | |
| Unknown error |
View (per person)
Retrieve TelephoneNumbers attached to a CO Department, CO Person Role, or Org Identity.
Request Format
Method |
|
---|---|
URL |
|
Request Body |
Response Format
HTTP Status | Response Body | Description |
---|---|---|
| TelephoneNumber returned | |
204 CO Department Has No TelephoneNumber | The requested CO Department was found, but has no telephone numbers attached | |
| The requested CO Person Role was found, but has no telephone numbers attached | |
| The requested Org Identity was found, but has no telephone numbers attached | |
| The requested Organization was found, but has no telephone numbers attached | |
| Authentication required | |
|
| |
|
| |
|
| |
|
| |
| Unknown error |
View (one)
Retrieve an existing TelephoneNumber.
Request Format
Method |
|
---|---|
URL |
|
Request Body |
Response Format
HTTP Status | Response Body | Description |
---|---|---|
| TelephoneNumber returned | |
| Authentication required | |
|
| |
| Unknown error |
Notes
- Response format requested is ignored where response is only via HTTP status, but must still be provided.
See Also
- cm_telephone_numbers data model definition