Patch Bulk Variant Contents

PATCH {{apiPath}}/environments/{{envID}}/templates/{{templateName}}/contents?filter=variant%20eq%20{{variantName}}

The operation PATCH /environments/{{envID}}/templates/{{templateName}}/contents with the required filter variant eq {{variantName}} bulk changes the value of variant for all contents that meet the filter requirements. The variant value in the filter is the current value. The variant value in the request body is the new value. The new value is returned in the response.

No other filters are supported.

ParameterDescription
filterRequired Use the filter parameter with the variant eq {{variantName}} value to specify contents to update.

Request Params

KeyDatatypeRequiredDescription
filterstring

Request Body

{"variant"=>"variant_D"}

RESPONSES

status: OK

{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication/contents"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"template":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication"},"next":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication/contents?cursor=a4534dd8-3feb-43d7-a0aa-77c672484ef6"}},"_embedded":{"contents":[{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication/contents/00ba533d-fdaf-4ac2-a0e3-6458a122f1b4"},"template":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"00ba533d-fdaf-4ac2-a0e3-6458a122f1b4","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"createdAt":"2021-01-14T06:33:29.126Z","updatedAt":"2021-01-14T06:33:29.126Z","locale":"en","variant":"variant_D","template":{"id":"strong_authentication"},"title":"Test Push","body":" Your OTP is ${otp}","deliveryMethod":"Push","default":false},{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication/contents/a4534dd8-3feb-43d7-a0aa-77c672484ef6"},"template":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"a4534dd8-3feb-43d7-a0aa-77c672484ef6","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"createdAt":"2021-01-14T06:30:40.036Z","updatedAt":"2021-01-14T06:30:40.036Z","locale":"en","variant":"variant_D","template":{"id":"strong_authentication"},"subject":"Test Email","body":" Your OTP is ${otp}","deliveryMethod":"Email","default":false}]},"count":2,"size":2}