Labels
Restore an archived label or group
Requires the Labels: Delete permission. Restoring a group also restores its archived labels, except ones that were merged. A label in that group whose name is now used by an active label stays archived and is counted in skippedCount.
Errors
- 400 "This label was merged into another label and cannot be restored."
- 400 "Restore its group first." when the label sits in a group that is still archived.
- 403 without the permission.
- 404 when the label does not exist.
- 409 when the label's own name is now used by an active label under the same parent. Rename one of them first.
post/labels/{labelId}/restore
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/labels/{labelId}/restore
- Auth: API key in header x-speakai-key and API key in header x-access-token
Path parameters
labelIdstring required
Id of the label or group. Trimmed, then 1 to 64 characters from A-Z, a-z, 0-9, _ and - (pattern ^[A-Za-z0-9_-]{1,64}$). Anything else returns 400.
Response
Success
Changes
No recorded changes to this operation across all 2 revisions of this API.