Skip to content

Commit a77676c

Browse files
committed
CCM-12744: README
1 parent 38b0469 commit a77676c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

frontend/src/__tests__/components/forms/PreviewSMSTemplate/server-action.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('previewSmsTemplateAction server action', () => {
6464
);
6565

6666
expect(redirectMock).toHaveBeenCalledWith(
67-
'/submit-text-message-template/template-id?lockNumber=0',
67+
'/submit-text-message-template/template-id?lockNumber=1',
6868
'push'
6969
);
7070
});

lambdas/backend-api/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,14 @@ curl -X POST --location "${APIG_STAGE}/v1/routing-configuration" \
185185
}'
186186
```
187187
188-
### PUT - /v1/routing-configuration/:routingConfigId - Update a routing configuration
188+
### PATCH - /v1/routing-configuration/:routingConfigId - Update a routing configuration
189189
190190
```bash
191-
curl -X PUT --location "${APIG_STAGE}/v1/routing-configuration/${ROUTING_CONFIG_ID}" \
191+
curl -X PATCH --location "${APIG_STAGE}/v1/routing-configuration/${ROUTING_CONFIG_ID}" \
192192
--header 'Content-Type: application/json' \
193193
--header 'Accept: application/json' \
194194
--header "Authorization: $SANDBOX_TOKEN" \
195+
--header "X-Lock-Number: $CURRENT_LOCK_NUMBER" \
195196
--data '{
196197
"campaignId": "campaign",
197198
"cascade": [{
@@ -210,7 +211,8 @@ curl -X PUT --location "${APIG_STAGE}/v1/routing-configuration/${ROUTING_CONFIG_
210211
```bash
211212
curl -X PATCH --location "${APIG_STAGE}/v1/routing-configuration/${ROUTING_CONFIG_ID}/submit" \
212213
--header 'Accept: application/json' \
213-
--header "Authorization: $SANDBOX_TOKEN"
214+
--header "Authorization: $SANDBOX_TOKEN" \
215+
--header "X-Lock-Number: $CURRENT_LOCK_NUMBER"
214216
```
215217
216218
### DELETE - /v1/routing-configuration/:routingConfigId - Delete a routing configuration
@@ -219,6 +221,7 @@ curl -X PATCH --location "${APIG_STAGE}/v1/routing-configuration/${ROUTING_CONFI
219221
curl -X DELETE --location "${APIG_STAGE}/v1/routing-configuration/${ROUTING_CONFIG_ID}" \
220222
--header 'Accept: application/json' \
221223
--header "Authorization: $SANDBOX_TOKEN"
224+
--header "X-Lock-Number: $CURRENT_LOCK_NUMBER"
222225
```
223226
224227
<!-- vale on -->

0 commit comments

Comments
 (0)