GET
/api/v1/server/shift-types/{typeId}
Request
Response
200
Success
Authorization
AuthorizationstringrequiredYour API token as
Bearer YOUR_TOKEN. Create one in your server's dashboard settings.Path parameters
typeIdstringrequiredResponse
200 Success
createdAtintegerrequiredWhen it was created.
idstringrequiredUnique ID.
namestringrequiredShift type name.
requiredRolesstring[]requiredRole IDs allowed to start this type of shift. Empty means anyone.
serverIdstringrequiredServer ID, or department ID for department shift types.
discordRoleIdstring | nullDiscord role given while on this type of shift.
nicknamePrefixstring | nullNickname prefix added while on this type of shift.
Errors
| Status | Meaning |
|---|---|
400 | Invalid request. validation_failed lists each invalid field in details.fields. |
401 | Missing, invalid or expired token |
404 | Not found |
429 | Rate limited. See Retry-After and details. |
500 | Internal server error |