메인 콘텐츠로 건너뛰기
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 객체를 생성하기 위한 요청 본문입니다.

이 모델에는 RESTful 엔드포인트에서 URL 경로로 전달되는 project_id가 포함되지 않습니다.

name
string | null

이 op의 이름입니다. 동일한 이름을 가진 op들은 함께 버전이 관리됩니다.

source_code
string | null

이 op의 import를 포함한 전체 소스 코드입니다

응답

성공 응답

Op 객체 생성에 대한 응답 모델입니다.

digest
string
필수

생성된 op의 다이제스트입니다

object_id
string
필수

생성된 op ID

version_index
integer
필수

생성된 op의 버전 인덱스