프로젝트 생성
curl --request POST \
--url https://openapi.pluuug.com/v1/project \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"title": "<string>",
"contract": {
"id": 123
},
"symbolColor": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"isHidden": true
}
'import requests
url = "https://openapi.pluuug.com/v1/project"
payload = {
"title": "<string>",
"contract": { "id": 123 },
"symbolColor": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"isHidden": True
}
headers = {
"X-API-Key": "<api-key>",
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
contract: {id: 123},
symbolColor: '<string>',
startDate: '2023-12-25',
endDate: '2023-12-25',
isHidden: true
})
};
fetch('https://openapi.pluuug.com/v1/project', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.pluuug.com/v1/project",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'contract' => [
'id' => 123
],
'symbolColor' => '<string>',
'startDate' => '2023-12-25',
'endDate' => '2023-12-25',
'isHidden' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openapi.pluuug.com/v1/project"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"contract\": {\n \"id\": 123\n },\n \"symbolColor\": \"<string>\",\n \"startDate\": \"2023-12-25\",\n \"endDate\": \"2023-12-25\",\n \"isHidden\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.pluuug.com/v1/project")
.header("X-API-Key", "<api-key>")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"contract\": {\n \"id\": 123\n },\n \"symbolColor\": \"<string>\",\n \"startDate\": \"2023-12-25\",\n \"endDate\": \"2023-12-25\",\n \"isHidden\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.pluuug.com/v1/project")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"contract\": {\n \"id\": 123\n },\n \"symbolColor\": \"<string>\",\n \"startDate\": \"2023-12-25\",\n \"endDate\": \"2023-12-25\",\n \"isHidden\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"actualEndDate": "2023-12-25",
"created": "2023-11-07T05:31:56Z",
"contract": {
"id": 123,
"title": "<string>",
"amount": 123,
"startDate": "2023-12-25",
"endDate": "2023-12-25"
},
"symbolColor": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"isHidden": true
}{
"nonField": [
"<string>"
],
"contract": {
"id": [
"<string>"
]
},
"title": [
"<string>"
],
"status": [
"<string>"
],
"symbolColor": [
"<string>"
],
"startDate": [
"<string>"
],
"endDate": [
"<string>"
],
"isHidden": [
"<string>"
]
}프로젝트
프로젝트 생성
새 프로젝트를 생성합니다. contract.id로 계약 연결 가능 (선택).
플랜 제약: FREE 또는 AGENCY 플랜에서만 사용 가능.
POST
/
v1
/
project
프로젝트 생성
curl --request POST \
--url https://openapi.pluuug.com/v1/project \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"title": "<string>",
"contract": {
"id": 123
},
"symbolColor": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"isHidden": true
}
'import requests
url = "https://openapi.pluuug.com/v1/project"
payload = {
"title": "<string>",
"contract": { "id": 123 },
"symbolColor": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"isHidden": True
}
headers = {
"X-API-Key": "<api-key>",
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
contract: {id: 123},
symbolColor: '<string>',
startDate: '2023-12-25',
endDate: '2023-12-25',
isHidden: true
})
};
fetch('https://openapi.pluuug.com/v1/project', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.pluuug.com/v1/project",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'contract' => [
'id' => 123
],
'symbolColor' => '<string>',
'startDate' => '2023-12-25',
'endDate' => '2023-12-25',
'isHidden' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openapi.pluuug.com/v1/project"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"contract\": {\n \"id\": 123\n },\n \"symbolColor\": \"<string>\",\n \"startDate\": \"2023-12-25\",\n \"endDate\": \"2023-12-25\",\n \"isHidden\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.pluuug.com/v1/project")
.header("X-API-Key", "<api-key>")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"contract\": {\n \"id\": 123\n },\n \"symbolColor\": \"<string>\",\n \"startDate\": \"2023-12-25\",\n \"endDate\": \"2023-12-25\",\n \"isHidden\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.pluuug.com/v1/project")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"contract\": {\n \"id\": 123\n },\n \"symbolColor\": \"<string>\",\n \"startDate\": \"2023-12-25\",\n \"endDate\": \"2023-12-25\",\n \"isHidden\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"actualEndDate": "2023-12-25",
"created": "2023-11-07T05:31:56Z",
"contract": {
"id": 123,
"title": "<string>",
"amount": 123,
"startDate": "2023-12-25",
"endDate": "2023-12-25"
},
"symbolColor": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"isHidden": true
}{
"nonField": [
"<string>"
],
"contract": {
"id": [
"<string>"
]
},
"title": [
"<string>"
],
"status": [
"<string>"
],
"symbolColor": [
"<string>"
],
"startDate": [
"<string>"
],
"endDate": [
"<string>"
],
"isHidden": [
"<string>"
]
}Authorizations
HMAC-SHA256 방식으로 body를 secret key로 해싱하여 생성한 서명을 넣어야 합니다. 서버는 X-API-Key와 대응되는 secret key로 서명을 검증합니다.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
프로젝트 제목
Required string length:
1 - 128계약
Show child attributes
Show child attributes
상태 (U: 예정됨, I: 진행 중, A: 추가 기간, E: 종료됨)
U- 예정됨I- 진행 중A- 추가 기간E- 종료됨
Available options:
U, I, A, E 상징색
Required string length:
1 - 32시작 날짜
종료 날짜
숨김 여부
Response
프로젝트 제목
Maximum string length:
128실제 종료 날짜
생성일시
계약
Show child attributes
Show child attributes
상태 (U: 예정됨, I: 진행 중, A: 추가 기간, E: 종료됨)
U- 예정됨I- 진행 중A- 추가 기간E- 종료됨
Available options:
U, I, A, E 상징색
Maximum string length:
32시작 날짜
종료 날짜
숨김 여부
⌘I