GuidesAPI Reference
API Reference

updateMock(mockId, request)

update a mock.

import Mimic from 'mimic';

Mimic.updateMock('mock-id', {
  method: 'get',
  url: 'http://example.com',
  params: { userId: 5 },
  headers: { 'Authorization': 'Basic token' },
  response: {
    status: 200,
    delay: 0,
    headers: { 'Content-Type': 'application/json' },
    body: '{ text: "hello world" }'
  }
});