[api] Fix a spec typo