<back to all web services

UpdateService

The following routes are available for this service:
PUT/RestApi/apiservice/updateService/{OldUrlName}

export class PropertiesProxy
{
    public Name: string;
    public PropertyType: string;
    public IsPersistent: boolean;
    public AllowSort: boolean;
    public AllowFilter: boolean;
    public IsKey: boolean;

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

export class ContentsProxy
{
    public Name: string;
    public ReadOnly: boolean;
    public UrlKey: string;
    public ClrType: string;
    public Access: string;
    public Properties: PropertiesProxy[];
    public Children: ContentsProxy[];
    public AutogenerateProperties: boolean;
    public parentId: string;

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

export class ServiceBaseRequest
{
    public Route: string;
    public Name: string;
    public UrlName: string;
    public Enabled: boolean;
    public ApiKey: string;
    public AccessControlAllowOrigin: string;
    public AutogenerateTypes: boolean;
    public Access: string;
    public Types: ContentsProxy[];
    public Protocol: string;

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

export class UpdateService extends ServiceBaseRequest
{
    public OldUrlName: string;

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

TypeScript UpdateService DTOs

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

HTTP + JSV

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

PUT /RestApi/apiservice/updateService/{OldUrlName} HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	OldUrlName: String,
	Route: String,
	Name: String,
	UrlName: String,
	Enabled: False,
	ApiKey: String,
	AccessControlAllowOrigin: String,
	AutogenerateTypes: False,
	Access: String,
	Protocol: String
}