diff --git a/src/packages/shared-types/authority.ts b/src/packages/shared-types/authority.ts index a379b5460b..85e420851e 100644 --- a/src/packages/shared-types/authority.ts +++ b/src/packages/shared-types/authority.ts @@ -1,3 +1,4 @@ export enum Authority { MED_SPA = "medicaid spa", + CHIP_SPA = "chip spa", } diff --git a/src/services/api/handlers/submit.ts b/src/services/api/handlers/submit.ts index b746fbeba7..1345983d46 100644 --- a/src/services/api/handlers/submit.ts +++ b/src/services/api/handlers/submit.ts @@ -44,12 +44,12 @@ export const submit = async (event: APIGatewayEvent) => { }); } - if (body.authority !== Authority.MED_SPA) { + const activeSubmissionTypes = [Authority.CHIP_SPA, Authority.MED_SPA]; + if (!activeSubmissionTypes.includes(body.authority)) { return response({ statusCode: 400, body: { - message: - "The Mako Submissions API only supports Medicaid SPA at this time", + message: `OneMAC (micro) Submissions API does not support the following authority: ${body.authority}`, }, }); }