Ask or search…
K
Links
Comment on page

Delete an Access Code

delete
https://connect.getseam.com
/access_codes/delete
Delete an Access Code

Code Example

Ruby
Python
Javascript
seam.access_codes.delete("123e4567-e89b-12d3-a456-426614174000")
# <Seam::ActionAttempt:0x0000000107026c98
# status="success"
# action_type="DELETE_ACCESS_CODE",
# action_attempt_id="af0155aa-51fe-4e63-9acb-2fbd33675cac",
# result={}>
seam.access_codes.delete("0080cddd-e0ba-407d-b8c7-d0865bd1e3c4")
# ActionAttempt(
# action_attempt_id='9b9aa024-2502-42a3-96d1-aed9606fde1b',
# action_type='DELETE_ACCESS_CODE',
# status='success',
# result={},
# error=None
# )
await seam.accessCodes.delete({
access_code_id: "1e9c85c3-77dc-481c-8fc1-3a10121ebe67",
});
//{}

Parameters

access_code_id
type: string
ID of the Access Code

Response

This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.

JSON format

JSON
{
"action_attempt": {
"status": "pending",
"action_type": "DELETE_ACCESS_CODE",
"action_attempt_id": "6a5e05e3-fd92-4211-aecb-ac53f1382ea1",
"result": null,
"error": null
},
"ok": true
}