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.||string|
|(Optional) Description of the channel.||string|
(Optional) Field 1 name.
(Optional) Field X name, where X is the field ID.
(Optional) Latitude in degrees, specified as a value
(Optional) Longitude in degrees, specified as a value
(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.
Use POSTMAN to Write Channel Settings
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 and enter
api.thingspeak.com/channels/<CHANNEL_ID>.jsonin the address bar, replacing
<CHANNEL_ID>with the channel of interest.
Enter the parameter
api_keyin the value column, enter your User API Key, which is found in Account > My Profile.
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.