Content - Image (Connect API)

POST Create an image in a content folder.

POST /services/data/{apiVersion}/connect/cms/contents

Operation ID: createImage.

Parameters

  • Authorization (header, string, required) A unique, time-limited token that you can use to issue requests to Connect API. Replace YOUR_ACCESS_TOKEN with your authentication token.

    Example

    Bearer YOUR_ACCESS_TOKEN
  • apiVersion (path, string, required) The Salesforce API version, such as v68.0.

Request body (required)

Media type: application/json. Schema: ImageRequest.

Responses

  • 201 The image content was created.

    Media type: application/json. Schema: ImageResponse.

  • 400 The request is invalid.

    Media type: application/json. Schema: Error.

  • 401 The access token is missing

    Media type: application/json. Schema: Error.

  • 403 You don't have permission to perform this action.

    Media type: application/json. Schema: Error.