{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Replaces every label on the thread with the given labels, in one atomic change. Labels on the thread that are not in the list are taken off it. The labels themselves are kept. An empty array takes every label off the thread. The response lists every label on the thread after the change. A label ID that is not a label of the inbox returns a 404 `Label not found.`, and nothing changes. A thread that does not exist in the inbox returns a 404 `Thread not found.`.","properties":{"path":{"type":"object","properties":{"inbox_id":{"type":"string","examples":["b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"],"description":"The Inbox ID or the inbox email address, such as `support@acme.com`. A value that contains `@` must be a valid email address, and any other value must be a UUID, or the request returns a 422. The address match is case-insensitive and never falls back to the inbox `name`. An address that matches no inbox returns a 404."},"thread_id":{"type":"string","format":"uuid","description":"The Thread ID."}},"required":["inbox_id","thread_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/SetInboxThreadLabelsOptions"}},"required":["path","body"],"additionalProperties":false,"definitions":{"SetInboxThreadLabelsOptions":{"type":"object","required":["labels"],"properties":{"labels":{"type":"array","maxItems":100,"items":{"type":"string","format":"uuid"},"description":"The IDs of the labels the thread carries after the change. Up to 100 IDs, each a label of the inbox. Pass an empty array to take every label off the thread.","examples":[["7f9c1d2e-4a6b-4c3d-8e15-9b0a7c6d5e34"]]}}}}},"name":"Set the labels of an inbox thread","id":"resend.inboxes.set-thread-labels","example":{"path":{"inbox_id":"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1","thread_id":"00000000-0000-4000-8000-000000000000"},"body":{"labels":["7f9c1d2e-4a6b-4c3d-8e15-9b0a7c6d5e34"]}},"maxRequests":1,"summary":false}}