---
title: "Create a ContentSubmission"
method: POST
path: "/api/v2/ContentSubmissions"
tags: ["ContentSubmissions"]
---

# Create a ContentSubmission

`POST /api/v2/ContentSubmissions`

## Request

- Base URL: `https://secure.agco-ats.com`
- URL: `https://secure.agco-ats.com/api/v2/ContentSubmissions`
- Auth: none declared

Creates a ContentSubmission.  The body of the POST is the ContentSubmission to create.
            The ContentSubmissionID will be assigned on creation of the Job.  When successful, the response
            is the ContentSubmissionID.  If unsuccessful, an appropriate ApiError is returned.

## Request body

- ContentSubmissionSharedBusinessEntitiesContentSubmission: A content submission
  - `ContentSubmissionID` integer: The ID of this Content Submission.
  - `ContentDefinitionID` integer: The ID of the Content Definition.
  - `Repository` string: The SVN repository used as the source of this content submission
  - `Revision` integer: The SVN revision used as the source of this content submission.
  - `Version` integer: Optional. The version number assigned to this Content Submission and the resulting Package. If not provided, version shall be 1 if it is the first content submission for the ContentDefinitionID otherwise it shall be the highest content submission version for the specified ContentDefinitionID incremented by 1.
  - `UserID` integer: Read Only. The ID of the user who submitted the content
  - `SubmissionDate` string, date-time: Read Only. The UTC date and time the content submission was made.
  - `JobRunID` integer: ReadOnly. The ID of the JobRun which will build the content package.
  - `BuildID` integer: ReadOnly. The ID of the Azure DevOps Build which will build the content package.
  - `PackageID` string: The ID of package generated by this content submission.
  - `ReleaseNotes` string: Release Notes for this ContentSubmission
  - `Attributes` ContentSubmissionSharedBusinessEntitiesContentSubmissionAttribute[]: Attributes of this ContentSubmission
    - `ID` integer: The ID of this attribute.
    - `ContentSubmissionID` integer: The ID of the content submission to which this attribute belongs.
    - `Name` string, required: The name of this Attribute.
    - `Value` string: The value of this Attribute
  - `Definition` ContentSubmissionSharedBusinessEntitiesContentDefinition: The definition of the content for submission
    - `ContentDefinitionID` integer: The ID of this content definition.
    - `Name` string: The name of this content. Name must be valid for Attribute on PackageType.
    - `TypeID` integer: The type of content.
    - `PackageTypeID` string: Read Only. The ID of the package type used for this content.
    - `Description` string, required: The description used on the package type in the AGCO Update System
    - `Attributes` ContentSubmissionSharedBusinessEntitiesContentDefinitionAttribute[]: Attributes of this ContentDefinition
      - `ID` integer: The ID of this attribute.
      - `ContentDefinitionID` integer: The ID of the content definition to which this attribute belongs.
      - `Name` string, required: The name of this Attribute.
      - `Value` string: The value of this Attribute

## Response `200`

OK

- integer

## Other responses

- `default`: API Error Response

---

[API](https://skmtc.dev/agco-ats/apis/agco-ats-api.md) - [All operations](https://skmtc.dev/agco-ats/apis/agco-ats-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agco-ats/apis/agco-ats-api/revisions/8b416443df5c?raw)
