메인 콘텐츠로 건너뛰기
POST
/
v2
/
{entity}
/
{project}
/
ops
Op 생성
curl --request POST \
  --url https://api.example.com/v2/{entity}/{project}/ops \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "source_code": "<string>"
}
'
{
  "digest": "<string>",
  "object_id": "<string>",
  "version_index": 123
}

인증

Authorization
string
header
필수

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

경로 매개변수

entity
string
필수
project
string
필수

본문

application/json

REST API를 통해 Op 객체를 생성하기 위한 요청 본문입니다.

이 모델은 project_id를 제외합니다. RESTful 엔드포인트에서는 project_id가 URL 경로에서 제공되기 때문입니다.

name
string | null

이 op의 이름입니다. 이름이 같은 op는 함께 버전 관리됩니다.

source_code
string | null

임포트를 포함한 이 op의 전체 소스 코드

응답

성공적인 응답

Op 객체를 생성할 때의 응답 모델입니다.

digest
string
필수

생성된 op의 다이제스트

object_id
string
필수

생성된 op의 ID

version_index
integer
필수

생성된 op의 버전 인덱스