Set a FIDO2 Relying Party Resource as default
You can have more than one Relying Party Resource. Only the one that is set as the default is relevant for the registration and authentication operations.
To set a FIDO2 Relying Party Resource as default, call the following endpoint:
[POST /fido2-relying-parties/{uuid}/make-default](https://community.onespan.com/products/onespan-cloud-authentication/sandbox#/FIDO2 Relying Parties/setDefaultRelyingPartyPost)
The responses for this endpoint include the following:
- 204: Make default operation successful.
- 400: Input data errors.
- 404: FIDO2 Relying Party not found.
- 500: Internal error, sub-service failure, server crash.
> Only one Relying Party Resource can be the default at any given time. If you make another Relying Party the default, the Relying Party that is currently the default will automatically lose its default status.
> If you change the default FIDO2 Relying Party Resource, registrations that were performed in the context of that previous default Relying Party Resource will not be working, unless you use the same Relying Party ID (publicKeyCredentialRpEntity.id) and origins.
Update a FIDO2 Relying Party Resource
To update an existing FIDO2 Relying Party Resource, call the following endpoint:
[PATCH /fido2-relying-parties/{uuid}](https://community.onespan.com/products/onespan-cloud-authentication/sandbox#/FIDO2 Relying Parties/updateRelyingPartyByIdUsingPATCH)
The responses for this endpoint include the following:
- 200: FIDO2 Relying Party update successful.
- 400: Input data errors.
- 404: FIDO2 Relying Party not found.
- 500: Internal error, sub-service failure, server crash.
> When updating a Relying Party Resource, only the fields that require an update need to be provided in the request body. Fields that are not provided will remain unchanged.
> If you change the Relying Party ID (publicKeyCredentialRpEntity.id) or origins when updating your Relying Party Resource, note that registrations that were previously performed will not work anymore. To restore these registrations, you need to call the [PATCH /fido2-relying-parties/{uuid}](https://community.onespan.com/products/onespan-cloud-authentication/sandbox#/FIDO2 Relying Parties/updateRelyingPartyByIdUsingPATCH) endpoint and enter the correct Relying Party ID (publicKeyCredentialRpEntity.id) and origins values.
>
> We recommend as a best practice to keep records of the old Relying Party ID and origins values, as it will allow you to restore your Relying Party Resource registrations in case of problems.
Delete a FIDO2 Relying Party Resource
To delete a FIDO2 Relying Party Resource, call the following endpoint:
[DELETE /fido2-relying-parties/{uuid}](https://community.onespan.com/products/onespan-cloud-authentication/sandbox#/FIDO2 Relying Parties/deleteRelyingPartyByIdUsingDELETE)
The responses for this endpoint include the following:
- 204: Delete operation successful.
- 400: Input data errors.
- 404: FIDO2 Relying Party not found.
- 500: Internal error, sub-service failure, server crash.
> It is not possible to delete the default Relying Party Resource.