| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/Organization/{OrganizationId} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/Organization |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Organization | body | List<Organization> | No | |
| OrganizationId | path | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OrganizationId | form | long | No | |
| OrganizationTypeId | form | int | No | |
| StateID | form | int | No | |
| StateName | form | string | No | |
| DistrictID | form | int | No | |
| DistrictName | form | string | No | |
| CountyID | form | int | No | |
| CountyName | form | string | No | |
| SchoolID | form | long | No | |
| SchoolName | form | string | No | |
| EntityName | form | string | No | |
| EntityId | form | string | No | |
| Source | form | string | No | |
| Pera_ListId | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Organization | form | List<Organization> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Organization/{OrganizationId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Organization:
[
{
OrganizationId: 0,
OrganizationTypeId: 0,
StateID: 0,
StateName: String,
DistrictID: 0,
DistrictName: String,
CountyID: 0,
CountyName: String,
SchoolID: 0,
SchoolName: String,
EntityName: String,
EntityId: String,
Source: String,
Pera_ListId: 0
}
],
OrganizationId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Organization:
[
{
OrganizationId: 0,
OrganizationTypeId: 0,
StateID: 0,
StateName: String,
DistrictID: 0,
DistrictName: String,
CountyID: 0,
CountyName: String,
SchoolID: 0,
SchoolName: String,
EntityName: String,
EntityId: String,
Source: String,
Pera_ListId: 0
}
]
}