Update channel settings with HTTP PUT
Use this request to write channel settings. Channel settings include channel description, field names, channel location, metadata, public or private status, and the name of the channel.
(Required) Channel ID for the channel of interest.
(Required) Format for the HTTP response, specified as
|(Required) Specify User API Key, which you can find in your profile. This key is different from the channel API keys.|
|(Optional) Description of the channel.|
(Optional) Field 1 data.
(Optional) Field X data, where X is the field ID.
(Optional) Latitude in degrees.
(Optional) Longitude in degrees.
(Optional) Elevation in meters.
(Optional) Metadata for the channel, which can include JSON, XML, or any other data.
(Optional) Name of the channel.
(Optional) Whether the channel is public. The default is false.
(Optional) Comma-separated list of tags.
(Optional) Webpage URL for the channel.
For the full list, see Error Codes.
You can use POSTMAN to try out your HTTP requests using the RESTful API for ThingSpeak. This example shows how to write new channel settings using POSTMAN.
Using an existing channel, change the channel name to
Channel and the field 1 title to
Rate. Also change the sharing to Public.
PUT https://api.thingspeak.com/channels/CHANNEL_ID api_key=XXXXXXXXXXXXXXXX name=Updated Channel public_flag=true field1=Heart Rate
In POSTMAN, select PUT from the drop-down list of HTTP verbs
in the address bar, replacing
with the channel of interest.
Enter the parameter
api_key in the value
column, enter your User API Key, which is found in
Account > My
Enter additional parameters and values:
The response is in JSON format. Note the server response value of 200 OK, indicating successful writing of new channel settings.
The new channel settings are now available on your channels page.