Letter template groups

Rename a letter template group

Changes a group's name. Name is the only thing a group holds, so this is the whole update. Requires the letter_templates:write permission.

PUT
https://services.magicdoor.com/communications/company-portal/letter-templates/groups/{id}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

idstringrequired

The group to rename. A 64-bit number sent as a string.

example: 1829911204830429184

Body

application/json

namestringrequired

The group's new name, 1 to 250 characters.

Response

200 · The group as it now stands.

idstringrequired

The letter template group. A 64-bit number sent as a string.

namestringrequired

The group's name, as the property manager typed it.

createdstring · date-timerequired

When the group was created, in the company's timezone and with no offset.

updatedstring · date-timerequired

When the group was last renamed, in the company's timezone and with no offset.

400 · `name` is missing, blank, or longer than 250 characters.

401 · The access token is missing, expired, or not a property-manager token.

403 · The token is valid but the caller does not hold the `letter_templates:write` permission.

404 · No group with that id belongs to the caller's company.