Update a Header
PUT https://restapi.actonsoftware.com/api/1/header/{id}
This endpoint allows you to update an existing header in the account.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String | Insert your generated access token. (Bearer {access token}) |
id | Path | False | Required | String | Specify the ID of the header. |
html | Form | False | Optional | String | Specify valid HTML for the header. |
text | Form | False | Optional | String | Specify the text version of the header. |
title | Form | False | Optional | String | Specify a title for the header. |
Parameter Notes
HTML and TEXT
The request must include the TEXT or HTML parameter.
Response
{ "status": "Success", "message": "Header 1 updated.", "id": "1" }
Code Examples
cURLPython
curl -X PUT https://restapi.actonsoftware.com/api/1/header/1 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -H "Content-Type: application/x-www-form-urlencoded" -d html='Updated HTML Text'
import requests url = "https://restapi.actonsoftware.com/api/1/header/1" payload = 'html=Updated%20HTML%20Text' headers = { 'Authorization': 'Bearer 12345678-9abc-defg-hijk-lmnopqrs', 'Content-Type': 'application/x-www-form-urlencoded' } response = requests.request("PUT", url, headers=headers, data = payload) print(response.text.encode('utf8'))