Create application
client.Zones.Applications.New(ctx, zoneID, body) (*Application, error)
POST/zones/{zoneId}/applications
Creates a new Application - a software system with an identity that can access Resources
Parameters
zoneID string
Returns
Create application
package main
import (
"context"
"fmt"
"github.com/keycardai/keycard-go"
)
func main() {
client := keycard.NewClient(
)
application, err := client.Zones.Applications.New(
context.TODO(),
"zoneId",
keycard.ZoneApplicationNewParams{
Identifier: "x",
Name: "x",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", application.ID)
}
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
}