Saltar al contenido principal
POST
/
v1
/
project
Create Project
import requests

url = "https://api.diga.io/v1/project/"

payload = {
    "name": "<string>",
    "description": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "name": "<string>",
  "members_count": 123,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cuerpo

application/json
name
string
requerido

The name of the project

description
string | null

A brief description of the project

Respuesta

Successful Response

name
string
requerido

The name of the project

members_count
integer
requerido

Number of members associated with the project

id
string<uuid> | null

Unique identifier for the project

description
string | null

A brief description of the project