Create Image
POST {{apiPath}}/environments/{{envID}}/images
The POST /environments/{{envID}}/images
endpoint associates the identified image file with the specified environment resource.
Note: To complete this request, you must specify an image file to upload and edit the Content-Disposition
header to match the file.
Prerequisites
- See Images for important overview information.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Content-Disposition | string |
RESPONSES
status: Created
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/images/2664e4d0-50eb-42b6-be1d-b2345584b615"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"2664e4d0-50eb-42b6-be1d-b2345584b615","targets":{"original":{"id":"original","width":32,"height":32,"type":"jpg","href":"https://uploads.pingone.com/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/images/favicon-new.jpg"}},"environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"createdAt":"2020-02-27T19:49:36.457Z"}