TechStacks!

<back to all web services

AddOrganizationCategory

Organization
Requires Authentication
The following routes are available for this service:
POST/orgs/{OrganizationId}/categories

export class AddOrganizationCategoryResponse
{
    public id: number;
    public slug: string;
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<AddOrganizationCategoryResponse>) { (Object as any).assign(this, init); }
}

export class AddOrganizationCategory implements IPost
{
    public organizationId: number;
    public slug: string;
    public name: string;
    public description: string;
    public technologyIds: number[];

    public constructor(init?: Partial<AddOrganizationCategory>) { (Object as any).assign(this, init); }
}

TypeScript AddOrganizationCategory DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /orgs/{OrganizationId}/categories HTTP/1.1 
Host: techstacks.io 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"organizationId":0,"slug":"String","name":"String","description":"String","technologyIds":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0,"slug":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}