openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_CTREQUEST_CREATE:
    post:
      tags:
      - SCTS_OBJECT_CTREQUEST
      summary: Create request with tasks (method for object CTREQUEST)
      operationId: /rfc/BAPI_CTREQUEST_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AUTHOR:
                  type: string
                  maxLength: 12
                  description: Author of request to be created
                PROJECT:
                  type: object
                  properties:
                    PROJECTTYP:
                      type: string
                      maxLength: 32
                      description: External Project System
                    PROJECT_NR:
                      type: string
                      maxLength: 32
                      description: Project ID
                REQUEST_TYPE:
                  type: string
                  maxLength: 1
                  description: W = Customizing request, otherwise Workbench request
                TEXT:
                  type: string
                  maxLength: 60
                  description: Short text for the request to be created
                TRANSLAYER:
                  type: object
                  properties:
                    LAYER_SET:
                      type: string
                      maxLength: 1
                      description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    LAYER:
                      type: string
                      maxLength: 4
                      description: Transport Layer in ABAP Workbench
                AUTHORLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TASK_OWNER:
                        type: string
                        maxLength: 12
                        description: Owner of a Request or Task
                TASK_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TASKID:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of request/task  enumValues: P=Piece List for Upgrade,C=Relocation of Objects Without Package Change,M=Client Transport Request,K=Workbench Request,T=Transport of Copies,X=Unclassified Task,Q=Customizing Task,S=Development/Correction,O=Relocation of Objects with Package Change,E=Relocation of Complete Package,G=Piece List for CTS Project,F=Piece List,W=Customizing Request,R=Repair,D=Piece List for Support Package'
                        enum:
                        - P
                        - C
                        - M
                        - K
                        - T
                        - X
                        - Q
                        - S
                        - O
                        - E
                        - G
                        - F
                        - W
                        - R
                        - D
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Status of request/task  enumValues: N=Released (with Import Protection for Repaired Objects),L=Modifiable, Protected,R=Released,O=Release Started,D=Modifiable'
                        enum:
                        - N
                        - L
                        - R
                        - O
                        - D
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Owner of a Request or Task
                      TEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      CHANGEDATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      CHANGETIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                      REQUESTID:
                        type: string
                        maxLength: 20
                        description: Request/Task
              required:
              - AUTHOR
              - TEXT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  HEADER:
                    type: object
                    properties:
                      REQUESTID:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of request/task  enumValues: P=Piece List for Upgrade,C=Relocation of Objects Without Package Change,M=Client Transport Request,K=Workbench Request,T=Transport of Copies,X=Unclassified Task,Q=Customizing Task,S=Development/Correction,O=Relocation of Objects with Package Change,E=Relocation of Complete Package,G=Piece List for CTS Project,F=Piece List,W=Customizing Request,R=Repair,D=Piece List for Support Package'
                        enum:
                        - P
                        - C
                        - M
                        - K
                        - T
                        - X
                        - Q
                        - S
                        - O
                        - E
                        - G
                        - F
                        - W
                        - R
                        - D
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Status of request/task  enumValues: N=Released (with Import Protection for Repaired Objects),L=Modifiable, Protected,R=Released,O=Release Started,D=Modifiable'
                        enum:
                        - N
                        - L
                        - R
                        - O
                        - D
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Owner of a Request or Task
                      TEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      SRC_CLIENT:
                        type: string
                        maxLength: 3
                        description: Source client of request
                      CHANGEDATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      CHANGETIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                      TARGET:
                        type: string
                        maxLength: 10
                        description: Transport Target of Request
                      PROJECTTYP:
                        type: string
                        maxLength: 30
                        description: Request attribute
                      PROJECT_NR:
                        type: string
                        maxLength: 32
                        description: Attribute value
                  REQUESTID:
                    type: string
                    maxLength: 20
                    description: Number of the created request
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  AUTHORLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TASK_OWNER:
                          type: string
                          maxLength: 12
                          description: Owner of a Request or Task
                  TASK_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TASKID:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Type of request/task  enumValues: P=Piece List for Upgrade,C=Relocation of Objects Without Package Change,M=Client Transport Request,K=Workbench Request,T=Transport of Copies,X=Unclassified Task,Q=Customizing Task,S=Development/Correction,O=Relocation of Objects with Package Change,E=Relocation of Complete Package,G=Piece List for CTS Project,F=Piece List,W=Customizing Request,R=Repair,D=Piece List for Support Package'
                          enum:
                          - P
                          - C
                          - M
                          - K
                          - T
                          - X
                          - Q
                          - S
                          - O
                          - E
                          - G
                          - F
                          - W
                          - R
                          - D
                        STATUS:
                          type: string
                          maxLength: 1
                          description: 'Status of request/task  enumValues: N=Released (with Import Protection for Repaired Objects),L=Modifiable, Protected,R=Released,O=Release Started,D=Modifiable'
                          enum:
                          - N
                          - L
                          - R
                          - O
                          - D
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Owner of a Request or Task
                        TEXT:
                          type: string
                          maxLength: 60
                          description: Short Description of Repository Objects
                        CHANGEDATE:
                          type: string
                          format: date
                          description: Date of Last Change
                        CHANGETIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                        REQUESTID:
                          type: string
                          maxLength: 20
                          description: Request/Task
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
