/* Options: Date: 2026-04-04 08:37:29 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SaveObjectConnectionForRoles.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* /** * Creates or Updates a new connection between two objects with connection type as link to associated role. */ @Route(Path="/roles/{FromRoleId}/associatedroles/safetystaff/{ToRoleId}", Verbs="POST") // @Route(Path="/roles/{FromRoleId}/associatedroles/organisation/{ToRoleId}", Verbs="POST") @Api(Description="Creates or Updates a new connection between two objects with connection type as link to associated role.") open class SaveObjectConnectionForRoles : IReturn { /** * 'From' object ID in the connection. */ @ApiMember(DataType="Guid", Description="'From' object ID in the connection.", IsRequired=true, Name="FromRoleId", ParameterType="query") open var FromRoleId:UUID? = null /** * 'To' object ID in the connection. */ @ApiMember(DataType="Guid", Description="'To' object ID in the connection.", IsRequired=true, Name="ToRoleId", ParameterType="query") open var ToRoleId:UUID? = null companion object { private val responseType = SaveObjectConnectionForRolesResponse::class.java } override fun getResponseType(): Any? = SaveObjectConnectionForRoles.responseType } @ApiResponse(Description="Returns the object connection Id created/modified and success of the save.") open class SaveObjectConnectionForRolesResponse { open var ResponseStatus:ResponseStatus? = null }