Fortinet white logo
Fortinet white logo

Create a new organization

Create a new organization

HTTP Method

Path

Description

Arguments

Outputs

POST

account/organizations/

Create a new organization record.

Organization values

New organization

Arguments (JSON payload)

Parameter

Type

Required

Description

name

string

Y

Organization name

first_name

string

N

First name of the contact person

last_name

string

N

Last name of the contact person

email

string

Y

Organization contact email

Outputs

Parameter

Type

Description

id

int

Unique ID of the newly created organization

name

string

Organization name

first_name

string

First name of the contact person

last_name

string

Last name of the contact person

email

string

Organization contact email

Example request

curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Token 9fb3fa217a23edbf50c8c358dab61beb07f6e8a191ecc597568f45e9455846e6" -d '{"email": "aaa@bbb.com", "first_name": "aaa", "last_name": "bbb", "name": "TeSt2"}' "https://<ip_address>/fpc/v1/api/account/organizations/"

Example response

{

"email" : "aaa@bbb.com",

"first_name" : "aaa",

"id" : 1,

"last_name" : "bbb",

"name" : "TeSt2"

}

Create a new organization

Create a new organization

HTTP Method

Path

Description

Arguments

Outputs

POST

account/organizations/

Create a new organization record.

Organization values

New organization

Arguments (JSON payload)

Parameter

Type

Required

Description

name

string

Y

Organization name

first_name

string

N

First name of the contact person

last_name

string

N

Last name of the contact person

email

string

Y

Organization contact email

Outputs

Parameter

Type

Description

id

int

Unique ID of the newly created organization

name

string

Organization name

first_name

string

First name of the contact person

last_name

string

Last name of the contact person

email

string

Organization contact email

Example request

curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Token 9fb3fa217a23edbf50c8c358dab61beb07f6e8a191ecc597568f45e9455846e6" -d '{"email": "aaa@bbb.com", "first_name": "aaa", "last_name": "bbb", "name": "TeSt2"}' "https://<ip_address>/fpc/v1/api/account/organizations/"

Example response

{

"email" : "aaa@bbb.com",

"first_name" : "aaa",

"id" : 1,

"last_name" : "bbb",

"name" : "TeSt2"

}