Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update a contact us subject

Fully updates a contact us subject. text is required; is_order_needed and recipients keep their stored values when left out of a JSON request.

Outside the default language, text is written only as the translation for the request language (see Translations and IGNORE_ACCEPT_LANGUAGE_HEADER in the section description).

put
/contact-us-subjects/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the contact us subject.

Body

Request body for fully updating a contact us subject. Fields other than text keep their stored values when left out.

textstring · min: 1 · max: 60Required

The subject label, written in the request language (see Translations in the section description).

Example: Order Status
is_order_neededbooleanOptional

Whether the storefront contact form requires an order to be selected for this subject.

Example: true
recipientsstring · email[] · min: 1 · nullableOptional

The addresses messages sent with this subject are e-mailed to. Send null to use CONTACT_US_EMAIL_TO instead; an empty list is rejected with 400.

Example: ["support@example.com"]
Responses
200

The updated contact us subject.

application/json

A contact us subject offered on the storefront contact form.

pkintegerRead-onlyOptional

The unique identifier of the subject.

Example: 1
textstring · max: 60Optional

The subject label, in the request language (falls back to the default language when no translation exists).

Example: Order Status
is_order_neededbooleanOptional

Whether the storefront contact form requires an order to be selected for this subject.

Example: true
recipientsstring · email[] · nullableOptional

The addresses messages sent with this subject are e-mailed to. When null, the storefront uses CONTACT_US_EMAIL_TO.

Example: ["support@example.com"]
put/contact-us-subjects/{id}/
PUT /api/v1/remote/1/contact-us-subjects/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 83

{
  "text": "Order Status",
  "is_order_needed": true,
  "recipients": [
    "support@example.com"
  ]
}
{
  "pk": 1,
  "text": "Order Status",
  "is_order_needed": true,
  "recipients": [
    "support@example.com"
  ]
}

Last updated

Was this helpful?