Platform API

<back to all web services

DeleteDynamicContent

Delete a dynamic content record.

Requires Authentication
The following routes are available for this service:
DELETE/api/dynamiccontent/{ObjectDynamicContentId}
import 'package:servicestack/servicestack.dart';

/**
* Delete a dynamic content record.
*/
// @Api(Description="Delete a dynamic content record.")
class DeleteDynamicContent implements IConvertible
{
    /**
    * Id of the Dynamic Content record.
    */
    // @ApiMember(Description="Id of the Dynamic Content record.", ParameterType="path")
    String? ObjectDynamicContentId;

    DeleteDynamicContent({this.ObjectDynamicContentId});
    DeleteDynamicContent.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ObjectDynamicContentId = json['ObjectDynamicContentId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ObjectDynamicContentId': ObjectDynamicContentId
    };

    getTypeName() => "DeleteDynamicContent";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: <String, TypeInfo> {
    'DeleteDynamicContent': TypeInfo(TypeOf.Class, create:() => DeleteDynamicContent()),
});

Dart DeleteDynamicContent 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.

DELETE /api/dynamiccontent/{ObjectDynamicContentId} HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}