curl --request POST \
--url http://api.stuut.ai/v1/email-templates/{email_template_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"cc": [
"[email protected]"
],
"is_default": true,
"name": "<string>",
"subject": "<string>",
"auto_correct": true,
"folder": "<string>"
}
'{
"object": "<string>",
"id": "<string>",
"attachments": [
{
"file_type": "audio",
"mime_type": "<string>",
"name": "<string>",
"object": "<string>",
"organization_id": "<string>",
"id": "<string>",
"content_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"disposition": "<string>",
"is_verified": true,
"modified_at": "2023-11-07T05:31:56Z",
"presigned_url": "<string>",
"presigned_url_expires_at": "2023-11-07T05:31:56Z",
"purpose": "<string>",
"remote_id": "<string>",
"size": 123,
"src": "<unknown>",
"user_id": "<string>"
}
],
"auto_correct": true,
"body": "<string>",
"cc": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"folder": {
"name": "<string>",
"object": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
},
"folder_id": "<string>",
"is_default": true,
"modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"preview_body": "<unknown>",
"preview_subject": "<unknown>",
"subject": "<string>"
}curl --request POST \
--url http://api.stuut.ai/v1/email-templates/{email_template_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"cc": [
"[email protected]"
],
"is_default": true,
"name": "<string>",
"subject": "<string>",
"auto_correct": true,
"folder": "<string>"
}
'{
"object": "<string>",
"id": "<string>",
"attachments": [
{
"file_type": "audio",
"mime_type": "<string>",
"name": "<string>",
"object": "<string>",
"organization_id": "<string>",
"id": "<string>",
"content_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"disposition": "<string>",
"is_verified": true,
"modified_at": "2023-11-07T05:31:56Z",
"presigned_url": "<string>",
"presigned_url_expires_at": "2023-11-07T05:31:56Z",
"purpose": "<string>",
"remote_id": "<string>",
"size": 123,
"src": "<unknown>",
"user_id": "<string>"
}
],
"auto_correct": true,
"body": "<string>",
"cc": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"folder": {
"name": "<string>",
"object": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
},
"folder_id": "<string>",
"is_default": true,
"modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"preview_body": "<unknown>",
"preview_subject": "<unknown>",
"subject": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
32Show child attributes
audio, document, gif, image, video 83232The use case for this attachment
The address' third party API ID.
3232Whether this is the default email template.
The name of the email template.
128The subject of the email template.