Create Project
POSTGenerate JWThttps://platform.nativeframe.com/dashboard/api/v1/organizations/:organizationSlug/projects
Request
Path Parameters
- application/json
Body
configuration
object
required
Possible values: [jwtAuth
, webhookAuth
, public
]
Responses
- 200
- 400
- 401
- 404
- 500
Returns the created project information
- application/json
- Schema
- Example (from schema)
Schema
project
object
{
"project": {
"id": "string",
"name": "string",
"slug": "string",
"isLegacyProjectPrivateCloud": true,
"organizationId": "string",
"configuration": {
"privateViewing": true,
"cdn": true,
"recording": true
},
"description": "string",
"configured": true
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Organization not found
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Authorization: http
name: JWTtype: httpscheme: bearerbearerFormat: JWTdescription: Bearer Token authentication for applications
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://platform.nativeframe.com/dashboard/api/v1/organizations/:organizationSlug/projects");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"name\": \"string\",\n \"slug\": \"string\",\n \"configuration\": {\n \"privateViewing\": true,\n \"cdn\": true,\n \"recording\": true\n },\n \"description\": \"string\",\n \"preferredAuth\": \"jwtAuth\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());