Create Dictionary and Add Item
A 3-step recipe with Fastly. We can help you get access.
Recipe · 3 steps
Create Dictionary and Add Item
with Fastly
Create a dictionary, activate the version, and add a key-value item.
- Create the dictionary container on the supplied draft version.
- Activate the version so the dictionary becomes live and versionless.
- Write a key-value item to the now-live dictionary.
What you'll need to have ready
- apiToken: The Fastly API token used to authenticate requests.
- serviceId: The alphanumeric identifier of the service.
- versionId: The draft version number to create the dictionary on.
- dictionaryName: The name for the new dictionary.
- itemKey: The key of the dictionary item to add.
- itemValue: The value of the dictionary item to add.
For your developer
Arazzo workflow fastly:create-dictionary-and-add-item, 3 operations: createDictionary → activateServiceVersion → createDictionaryItem. Specs on APIs.io.